package com.ktwlsoft.archivemanage.payload.study;

import com.ktwlsoft.archivemanage.domain.dao.entity.study.StudyClassify;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author JokerMo
 * @version 1.0
 * @date 2019/12/25 10:24
 */
@Getter
@Setter
public class UpdateClassifyRequest {

    @NotNull(message = "课程分类id不能为空")
    @ApiModelProperty("课程分类id")
    private Long id;

    @ApiModelProperty("上级课程分类id")
    private Long parentId;

    @ApiModelProperty("课程分类名称")
    @NotNull(message = "课程分类名称不能为空")
    @Size(max = 10, message = "课程分类名称不能超过10字符")
    private String name;

    @ApiModelProperty("层级")
    @NotNull(message = "层级不能为空")
    private Byte level;

    @ApiModelProperty("课程类型, MANAGE管理端课程, USER用户课程")
    @NotNull(message = "课程类型不能为空")
    private StudyClassify.ClassType classType;
}
